package com.tz.se.day01;

import java.util.Scanner;

public class Lingxing {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		// 最上层
		for (int i = n; i > 1; i--) {
			for (int j = 1; j < 2 * n; j++) {
				if (i == j || j == 2 * n - i) {
					System.out.print("*");
				} else {
					System.out.print(" ");
				}
			}
			System.out.println();
		}
		// 中间层
		for (int i = 1; i < 2 * n; i++) {
			if (i % 2 == 0) {
				System.out.print(" ");
			} else {
				System.out.print("*");
			}
		}
		System.out.println();
		// 最下层
		for (int i = 2; i <= n; i++) {
			for (int j = 1; j < 2 * n; j++) {
				if (i == j || j == 2 * n - i) {
					System.out.print("*");
				} else {
					System.out.print(" ");
				}
			}
			System.out.println();
		}

		sc.close();
	}
}